package de.kai_morich.simple_usb_terminal.proxy.staticproxy;

import de.kai_morich.simple_usb_terminal.proxy.Speakable;

/**
 * Created by fanqi on 2020/4/7.
 * Description:
 */
public class HumanProxy implements Speakable {

    private Human mHuman;

    public HumanProxy(Human human) {
        this.mHuman = human;
    }

    @Override
    public void speak() {

        humanBefore();
        mHuman.speak();
        humanAfter();

    }

    @Override
    public void eat() {

    }

    private void humanBefore() {
        System.out.println("在说话前，我会先思考清楚。");
    }

    private void humanAfter() {
        System.out.println("说完话后，我会微笑");
    }
}
